package com.amazon.bo;

import com.amazon.bo.base.BaseBo;
import com.amazon.web.controller.vo.Order;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * Created by anhui on 2018/1/1.
 */
@Entity
@DynamicUpdate
@DynamicInsert
public class Orders extends BaseBo implements Serializable {
    private static final long serialVersionUID = 6237499961429798537L;

    private String amazonOrderId;

    public String getAmazonOrderId() {
        return amazonOrderId;
    }

    public void setAmazonOrderId(String amazonOrderId) {
        this.amazonOrderId = amazonOrderId;
    }

    @Column(columnDefinition = ("varchar(4000) default null comment 'json 订单数据'"))
    private String orderBody;
    public String getOrderBody() {
        return orderBody;
    }
    public void setOrderBody(String orderBody) {
        this.orderBody = orderBody;
    }

    private String purchaseDate;
    public String getPurchaseDate() {
        return purchaseDate;
    }
    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getOrderPlace() {
        return orderPlace;
    }

    public void setOrderPlace(String orderPlace) {
        this.orderPlace = orderPlace;
    }

    private String orderPlace;
}
